﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace YF_Music.Core.Controls
{
  public class IconButton:Button
  {
 
    public Drawing Icon
    {
      get { return (Drawing)GetValue(IconProperty); }
      set { SetValue(IconProperty, value); }
    }
    public static readonly DependencyProperty IconProperty =
        DependencyProperty.Register("Icon", typeof(Drawing), typeof(IconButton), new PropertyMetadata(null));



    public CornerRadius Corner
    {
      get { return (CornerRadius)GetValue(CornerProperty); }
      set { SetValue(CornerProperty, value); }
    }
    public static readonly DependencyProperty CornerProperty =
        DependencyProperty.Register("Corner", typeof(CornerRadius), typeof(IconButton), new PropertyMetadata(new CornerRadius(50)));


  }
}
